package cn.edu.zhku.citrusmonitor.util;

import java.util.List;

public class PageBean<T> {

	private int currentPage = 1;//当前页数默认为1
	private int pageSize = 10;//每页显示的数据条数,默认为10
	private int count;//总的数据条数
	private int totalPage;//总页数
	private List<T> list;//每页显示的数据的集合
	
	public PageBean() { }
	
	public PageBean(int currentPage, int pageSize, int count, int totalPage, List<T> list) {
		super();
		this.currentPage = currentPage;
		this.pageSize = pageSize;
		this.count = count;
		this.totalPage = totalPage;
		this.list = list;
	}



	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	
	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	
}
